<%@ page import="com.opensymphony.xwork2.ActionContext" language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>


 <div id="nav">
      <ul>
       <% if(session.getValue("userId")!=null){ %>
        <li><a href="LogoutUser.action"><span>01</span> LOGOUT </a></li>
        <%}else{%>
            <li><a href="login.jsp"><span>01</span> LOGIN</a></li>
          <%} %> 
        <li><a href="EditAccount.action"><span>02</span> ACCOUNT  </a></li>
        <li><a href="Main.action"><span>03</span> LIBRARY</a></li>
        <li><a href="mainFriend.jsp"><span>04</span> FRIENDS </a></li>
        <%
        if ((session.getValue("userType") != null) && session.getValue("userType").equals("admin")) {
        %>
        <li><a href="adminHome.jsp"><span>05</span>ADMINISTER</a></li>
        <%
        }
        else {
        %>
        <li><a href="PendingRequests.action"><span>05</span>PENDING REQUESTS</a></li>
        <%
        }
        %>
        
      </ul>
    </div>